<!--*********************************************-->
_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_

       Arcade 1.0.3  
http://www.3ssom.com/vb
    
PHP
http://www.phkd.com
          
       
     
http://www.phpkd.com/vb

\_/\_/\_/\_/\_/\_/\_/\_/\__/\_/\_/\_/
<!--*********************************************-->

    
   .

      
http://www.3ssom.com/vb
              
        1.0.3            : 3.0.3 // 3.0.4 // 3.0.5 // 3.0.6 // 3.0.7              
http://www.phpkd.com/vb/arcade.php
=============================


     



    
===============
vb/admincp/index.php
vb/admincp/usergroup.php
vb/includes/functions.php
vb/includes/functions_showthread.php
vb/includes/init.php
vb/includes/functions_online.php
vb/global.php
vb/profile.php
vb/showthread.php

vb=  


    
===================
postbit 
navbar 



   
================ 
26        




   
==============
arcade_cp_game_active 
arcade_cp_game_challenabled 
arcade_cp_game_netplay 
arcade_cp_game_playpanel 
arcade_cp_game_showaward 
arcade_main_latestscorebit 
quickreg_prompt 
arcade_cp_settingssaved 




___________________________________________________________________________________

   
==================

===============
admincp/index.php
===============

 :
___________________________________________________________________________________

if (can_administer('canadminstyles'))



  :
___________________________________________________________________________________

construct_nav_option(" ", 'arcadeadmin.php?do=general', '<br />');
construct_nav_option(" ", 'arcadeadmin.php?do=games', '<br />');
construct_nav_option(" ", 'arcadeadmin.php?do=scores', '<br />');
construct_nav_option("", 'arcadeadmin.php?do=challenges', '<br />');
construct_nav_group("", '<hr />');


==============
   
==============


===================
admincp/usergroup.php
===================

 :
___________________________________________________________________________________

print_table_header($vbphrase['forum_viewing_permissions']);



  :
___________________________________________________________________________________

	print_table_header(" ");
	print_yes_no_row("  ȿ <dfn>          </dfn>", 'usergroup[canviewarcade]', $ug_bitfield['canviewarcade']);
	print_yes_no_row("    ȿ<dfn>     </dfn>", 'usergroup[canplayarcade]', $ug_bitfield['canplayarcade']);
	print_yes_no_row("  ޿<dfn>         </dfn>", 'usergroup[canmakecomments]', $ug_bitfield['canmakecomments']);
	print_yes_no_row("     ̿ <dfn>         </dfn>", 'usergroup[caneditscores]', $ug_bitfield['caneditscores']);
	print_yes_no_row("     ̿ <dfn>          </dfn>", 'usergroup[candelscores]', $ug_bitfield['candelscores']);
	print_table_break();


==============
   
==============


======================
includes/functions.php
======================

 :
___________________________________________________________________________________

// get CSS width for outerdivwidth from outertablewidth



  :
___________________________________________________________________________________

	// declares the arcade image directory
	$stylevar['imgdir_arcade'] = "images/arcade";


==============
   
==============


=================================
includes/functions_showthread.php
=================================

     
___________________________________________________________________________________

require_once('./includes/functions_reputation.php');



  :
___________________________________________________________________________________

if ($arcadegeneral['awardson']==1) {
	// declares the arcade image directory
	$stylevar['imgdir_arcade'] = "images/arcade";
	$arcade_result = $DB_site->query("SELECT shortname,title,gamesettings,highscorerid,highscore,miniimage,gameid FROM " . TABLE_PREFIX . "games ");
	while ($arcade = $DB_site->fetch_array($arcade_result)){
		if (($arcade[gamesettings] & $_GAMESCHECK['showaward'])){
			$awards[$arcade[shortname]]['userid'] = $arcade['highscorerid'];
			$awards[$arcade[shortname]]['gametitle'] = $arcade['title'];
			$awards[$arcade[shortname]]['icon'] = $arcade['miniimage'];
			$awards[$arcade[shortname]]['highscore'] = $arcade['highscore'];
			$awards[$arcade[shortname]]['gameid'] = $arcade['gameid'];
		}
	}
}




 :
___________________________________________________________________________________

// sorts through all the stuff to return the postbit template



  :
___________________________________________________________________________________

	// arcade
	global $awards,$arcadegeneral;




 :
___________________________________________________________________________________

$show['messageicon'] = iif($post['iconpath'], true, false);



  :
___________________________________________________________________________________

	if ($arcadegeneral['awardson']==1) {
		foreach ($awards as $key => $award) {
			if ($award['userid']==$post['userid']) {
				eval('$post[\'arcadeawards\'] .= "' . fetch_template('arcade_awards_bit') . '";');
			}
		}
	}


==============
   
==============


=================
includes/init.php
=================

 :
___________________________________________________________________________________

				'stylecache'
			), $specialtemplates);



 :
___________________________________________________________________________________

				'stylecache',
				'arcadesettings'
			), $specialtemplates);




 :
___________________________________________________________________________________

// get $usergroupcache array



  :
___________________________________________________________________________________

				// get $arcadesettings
				case 'arcadesettings':
				$arcadesettings = $storeitem['data'];
				break;




 :
___________________________________________________________________________________

// ----------------------------------------------------------
// ###  END PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE   ###



  :
___________________________________________________________________________________

$_BITFIELD['usergroup']['arcadepermissions'] = array(
	'canviewarcade'			=> 1,
	'canplayarcade'			=> 2,
	'caneditscores'		 	=> 4,
	'candelscores' 			=> 8,
	'canmakecomments'		=> 16
);




 :
___________________________________________________________________________________

	'warnall'           => 131072
);




  :
___________________________________________________________________________________

$_ARCADE = array(
	'active'			=> 1,
	'netplay'			=> 2,
	'awardson'			=> 4,
	'quickreg'			=> 8,
	'autoprune'			=> 16,
	'highonly'			=> 32,
	'vbcodeon'			=> 64,
	'imgcodeon'			=> 128,
	'smilieson'			=> 256,
	'allowemail'		=> 512,
	'challengescores'		=> 1024
);

$_ARCADEUSER = array(
	'firstvisit'		=> 1,
	'settingschecked'	=> 2,
	'allowchallenges'	=> 4,
	'allowemails'		=> 8
);

$_GAMESCHECK = array(
	'active'			=> 1,
	'netplay'			=> 2,
	'playpanel'			=> 4,
	'challenabled'		=> 8,
	'showaward'			=> 16
);


==============
   
==============


=============================
includes/functions_online.php
=============================

 :
___________________________________________________________________________________

		default:
			if ($permissions['wolpermissions'] & CANWHOSONLINEBAD)



  :
___________________________________________________________________________________

		case 'arcade':
			$userinfo['action'] = ' ';
			$userinfo['where'] = "<a href=\"arcade.php?$session[sessionurl]\">$vboptions[bbtitle] </a>";
			break;




 :
___________________________________________________________________________________

	default:
		$userinfo['activity'] = 'unknown';
	}



  :
___________________________________________________________________________________

	case 'arcade.php':
		$userinfo['activity'] = '';
		break;


==============
   
==============


==========
global.php
==========


 :
___________________________________________________________________________________

	echo "End call of global.php:  $aftertime\n";
	echo "\n<hr />\n\n";
}



  :
___________________________________________________________________________________

// Creates general settings for the Arcade
$arcadegeneral = convert_bits_to_array($arcadesettings,$_ARCADE);
$arcadeuser = convert_bits_to_array($bbuserinfo['arcadesettings'],$_ARCADEUSER);
$arcadepermissions = convert_bits_to_array($permissions['arcadepermissions'],$_BITFIELD['usergroup']['arcadepermissions']);


==============
   
==============


===========
profile.php
===========


 :
___________________________________________________________________________________

	'editavatar' => array(



  :
___________________________________________________________________________________

	'editarcade' => array(
		'modifyarcade'
	),




 :
___________________________________________________________________________________

// ############################################################################
// ############################### EDIT OPTIONS ###############################
// ############################################################################



  :
___________________________________________________________________________________

// ############################################################################
// ########################### ARCADE USER OPTIONS ############################
// ############################################################################
if ($_REQUEST['do'] == 'editarcade')
{
	$checked = array();
	// current values as checked
	foreach ($arcadeuser as $key => $value) {
		if ($value == 1) {
			$checked[$key] = HTML_CHECKED;
		}
	}
	construct_usercp_nav(); 
	$templatename = "modifyarcade";
}




 :
___________________________________________________________________________________

// ############################### start update options ###############################



  :
___________________________________________________________________________________

// ############################## start update arcade #################################
if ($_POST['do'] == 'updatearcade')
{
require_once('./includes/functions_misc.php');
	// globalize here
	$_POST['arcade']['firstvisit'] = 0;
	$_POST['arcade']['settingschecked'] = 1;
	$userSettings = &$_POST['arcade'];

	$userBits = convert_array_to_bits($userSettings,$_ARCADEUSER);
	
	$DB_site->query("
		UPDATE " . TABLE_PREFIX . "user SET
		arcadesettings = $userBits
		WHERE userid = $bbuserinfo[userid]
	");
	
	$url = "arcade.php?do=main";
	eval(print_standard_redirect('redirect_updatethanks'));
}


==============
   
==============


==============
showthread.php
==============


 :
___________________________________________________________________________________

	'pollresult',



 :
___________________________________________________________________________________

	'pollresult',
	'arcade_awards_bit',



  
======================


       .

==============
postbit
==============


 :
___________________________________________________________________________________

<if condition="$show['pmlink']">



  :
___________________________________________________________________________________

	<if condition="$post['arcadesettings'] & 4 AND $post[userid]!=$bbuserinfo[userid] AND $bbuserinfo[userid]!=0">
		<tr><td class="vbmenu_option"><a href="arcade.php?$session[sessionurl]do=newchallenge&userid=$post[userid]" target="_self"> $post[username]  </a></td></tr>
	</if>




 :
___________________________________________________________________________________

<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>



  :
___________________________________________________________________________________

$post[arcadeawards]


 


  
==============
navbar
==============


 :
___________________________________________________________________________________

<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>



  :
___________________________________________________________________________________

<td class="vbmenu_control"><a href="arcade.php?$session[sessionurl]"></a></td>




 :
___________________________________________________________________________________

		</table>
	</div>
	<!-- / header quick search form -->



  :
___________________________________________________________________________________
		<tr>
			<td class="thead">  </td>
		</tr>
		<tr>
			<td class="vbmenu_option" title="nohilite">
			<form action="arcade.php" method="post">
				<input type="text" class="bginput" name="search" size="20" />$gobutton<br />
			</form>
			</td>
		</tr>



 
===========

    (( >> >>  



Phrase Type: GLOBAL

Varname: arcade_cp_game_active

Text:    ɿ <dfn>          </dfn> 



Phrase Type: GLOBAL

Varname: arcade_cp_game_challenabled

Text:     ɿ<dfn>       </dfn>



Phrase Type: GLOBAL

Varname: arcade_cp_game_netplay

Text:          ʿ <dfn>       </dfn>



Phrase Type: GLOBAL

Varname: arcade_cp_game_playpanel

Text:     ɿ<dfn>     </dfn>



Phrase Type: GLOBAL

Varname: arcade_cp_game_showaward

Text:     ҿ <dfn>(  ...)</dfn>


Phrase Type: GLOBAL

Varname: arcade_main_latestscorebit

Text: <b>{1}</b>  <b>{2}</b>   "<b>{3}</b>". <a href="arcade.php?do=play&gameid={4}">[   {3}!]



Phrase Type: Front-End Error Messages

Varname: quickreg_prompt

Text:         .. <a href="$vboptions[bburl]/register.php"> </a>    .




Phrase Type: Control Panel Stop Message

Varname: arcade_cp_settingssaved

Text:      <b></b>  ...




 
============

    
(phpkd.com)
     

phpkd.com/arcade.php				->	vb/arcade.php

phpkd.com/admincp/install_arcade.php            -> 	vb/admincp/install_arcade.php

phpkd.com/admincp/arcadeadmin.php               ->	vb/admincp/arcadeadmin.php

phpkd.com/includes/functions_arcade.php	        ->	vb/includes/functions_arcade.php

phpkd.com/includes/cron/arcadeupdate.php        ->	vb/includes/cron/arcadeupdate.php

       

phpkd.com/images/arcade/		->	vb/images/arcade/
phpkd.com/games/			->	vb/games/
phpkd.com/admincp/arcadejs/		->	vb/admincp/arcadejs/


vb=  

           ..


 
===========
 
http://phpkd.com/vb/admincp/install_arcade.php 

phpkd.com= 
vb= 

   

 ,
    
install_arcade.php

      "Scheduled Task" :
1.   "Add New Scheduled Task",  "Scheduled Task" .
2. ,  "Arcade Tasks".
3.  "23"    .
4.  , : "./includes/cron/arcadeupdate.php". (  )
5.   "".

Scheduled Task= 

Add New Scheduled Task=   




<!--*********************************************-->
_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_

       Arcade 1.0.3  
http://www.3ssom.com/vb
    
PHP
http://www.phkd.com
          
       
     
http://www.phpkd.com/vb

\_/\_/\_/\_/\_/\_/\_/\_/\__/\_/\_/\_/
<!--*********************************************-->